package com.smh.a05printStreamDemo1;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

public class PrintStreamDemo3 {
    public static void main(String[] args) throws IOException {
        //字符打印流
        PrintWriter pw = new PrintWriter(new FileWriter("day27-code\\file\\demo3\\c.txt"), true);

        pw.write(97);// 这里写入的是字符
        pw.write('1');
        pw.println("asdasd");
        pw.print(true);
        pw.printf("%sxzczc", "2131");
        pw.close();


    }
}
